/** 禁止高频点击 */
export default {
    inserted(button, bind) {
        const {value} = bind
        button.addEventListener('click', () => {
            if (!button.disabled) {
                button.disabled = true;
                setTimeout(() => {
                    button.disabled = false
                }, value?value:2000)
            }
        })
    }
}
